#!/bin/bash
set -e

# 判断是否传了 -m
if [[ "$1" == "-m" ]]; then
    ./make.sh
    shift  # 去掉 -m 参数，后面的参数往前挪
fi

python3 gen_data.py "$1" "$2"
./add "$1" "$2"

rm input/*
rm output/*
